//
//  BannerMessageViewController.m
//  PersonalHospital
//
//  Created by qianfeng on 15/12/11.
//  Copyright (c) 2015年 QianFeng. All rights reserved.
//

#import "BannerMessageViewController.h"
#import "TranditionalBannerModel.h"
@interface BannerMessageViewController ()<UIWebViewDelegate>

@end

@implementation BannerMessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self addWebView];
}

-(void)addWebView{
    UIWebView * webView=[[UIWebView alloc]initWithFrame:[UIScreen mainScreen].bounds];
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.bannerModel.url]]];
    webView.delegate=self;
    [self.view addSubview:webView];
}

-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
    return YES;
}

-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
